package com.suliao.web.controller;

import cn.hutool.json.JSONUtil;
import com.suliao.common.annotation.LoginCheck;
import com.suliao.common.annotation.LoginPass;
import com.suliao.common.base.UserContext;
import com.suliao.common.util.CryPtoUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * @author ：M1nG
 * @date ：Created in 2020/12/14 10:40
 * @description：
 * @version: 1.0
 */
@Controller
@RequestMapping(value = "/home")
@LoginPass
public class HomeController {



    /**
     * |
     * 门户展示
     *
     * @param pageName
     * @return
     */
    @GetMapping("page/home/{pageName}")
    public String show(Model model, @PathVariable("pageName") String pageName) {
        //调service

        model.addAttribute("", "");
        return pageName;
    }

}
